﻿using System;
using System.Web.UI;
using StockholmsStad.Web.UI.Class.Interfaces;
using StockholmsStad.Web.UI.Class.Facade;
using System.Reflection;

namespace StockholmsStad.Web.UI
{
    /// <summary>
    /// 
    /// </summary>
    public partial class VersionPage : Page
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            IServiceFacade facade = new WebServiceFacade();

            lblWebbVersion.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            lblServiceVersion.Text = facade.GetServiceVersion();
            lblDatabaseVersion.Text = facade.GetDatabaseVersion();
            
        }
    }
}
